using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Beta_forums_controls_posts_PreviewPost : System.Web.UI.UserControl
{
    public void SetPreview(string subject, string post)
    {
        lblSubject.Text = Helpers.StringHelper.SafeFormat(subject);
        lblPost.Text = DAL.YCodes.Format(post);

        if (String.IsNullOrEmpty(subject) && String.IsNullOrEmpty(post))
        {
            pnlPreview.Visible = false;
        }
        else
        {
            pnlPreview.Visible = true;
        }
    }
}
